﻿var _html = "<div id='loading' style='display:none;position:absolute;z-index:9999;left:0;width:100%;height:100%;top:0;background:#E0ECFF;opacity:0.8;filter:alpha(opacity=80);cursor:wait;'>\<div style='position:absolute; left:50%;top:50%; margin-left:-72px; margin-top:21px; width:110px; height:16px;padding:10px 16px 10px 35px;background:url(/img/loading.gif) no-repeat scroll 15px 10px;border:2px solid #ccc;color:#000;'>\正在处理，请等待...\</div></div>";
document.write(_html);
function begainLoad() {
    var _mask = document.getElementById('loading');
    _mask.style.display = '';
}

function endLoad() {
    var _mask = document.getElementById('loading');
    _mask.style.display = 'none';
}
//Ajax
function ajaxLoading(msg) {
    $("<div class=\"datagrid-mask\"></div>").css({ display: "block", width: "100%", height: $(window).height() }).appendTo("body");
    $("<div class=\"datagrid-mask-msg\" id='divprogress'></div>").html(msg).appendTo("body").css({ display: "block", left: ($(document.body).outerWidth(true) - 190) / 2, top: ($(window).height() - 45) / 2 });
}
function ajaxLoadEnd() {
    $(".datagrid-mask").remove();
    $(".datagrid-mask-msg").remove();
}
  
       
